package com.eian.boot.module.common.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 批量生成ID请求（基于模板配置）
 *
 * @author alex.meng
 * @createTime 2025-10-15
 */
@Data
@Schema(description = "批量生成ID请求")
public class BatchGenerateRequest {

    @NotBlank(message = "业务类型不能为空")
    @Schema(description = "业务类型标识", example = "coupon")
    private String bizType;

    @NotNull(message = "生成数量不能为空")
    @Min(value = 1, message = "生成数量至少为1")
    @Max(value = 100000, message = "单次生成数量不能超过100000")
    @Schema(description = "生成数量", example = "100")
    private Integer count;

    @Schema(description = "是否去重（true时返回Set，false时返回List）", example = "false")
    private Boolean unique = false;
}

